package com.foreknow.service;

import com.foreknow.entity.Constanttype;

import java.util.List;

public interface ConstanttypeService {

    /**
     * 增加常数类别
     * @param constanttype
     * @return
     */
    int insertConstantType(Constanttype constanttype);

    /**
     * 删除常熟类别
     * @param id
     * @return
     */
    int deleteConstantType(Integer id);

    /**
     * 修改之前查询常数类别
     * @param id
     * @return
     */
    Constanttype searchConstantType(Integer id);

    /**
     * 修改常数类别
     * @param constanttype
     * @return
     */
    int updateConstantType(Constanttype constanttype);

    /**
     * 获取常数类别列表
     * @param query
     * @return
     */
    List<Constanttype> searchConstantTypeList(String query);
}
